package com.faf.bean;

public class Food {
	private int foodId = -1;
	private int storeId = -1;
	private String foodName = "Unknwon";
	private double foodPrice = -1;
	private String foodDescribe = "Unknwon";
	private String foodPhoto = "Unknwon";
	private String foodType = "Unknwon";
	private int valid = 1;

	public Food() {

	}
	// foodId, storeId, foodName, foodPrice, foodType, foodDescribe, messageRemark
	public Food(int foodId, int storeId, String foodName, double foodPrice, String foodType, String foodDescribe, String foodPhoto) {
		super();
		this.foodId = foodId;
		this.storeId = storeId;
		this.foodName = foodName;
		this.foodPrice = foodPrice;
		this.foodType = foodType;
		this.foodDescribe = foodDescribe;
		this.foodPhoto = foodPhoto;
	}

	public int getFoodId() {
		return foodId;
	}

	public void setFoodId(int foodId) {
		this.foodId = foodId;
	}

	public int getStoreId() {
		return storeId;
	}

	public void setStoreId(int storeId) {
		this.storeId = storeId;
	}

	public String getFoodName() {
		return foodName;
	}

	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}

	public double getFoodPrice() {
		return foodPrice;
	}

	public void setFoodPrice(double foodPrice) {
		this.foodPrice = foodPrice;
	}
	
	public String getFoodType() {
		return this.foodType;
	}
	
	public void setFoodType(String foodType) {
		this.foodType = foodType;
	}

	public String getFoodDescribe() {
		return foodDescribe;
	}

	public void setFoodDescribe(String foodDescribe) {
		this.foodDescribe = foodDescribe;
	}

	public String getFoodPhoto() {
		return foodPhoto;
	}

	public void setFoodPhoto(String foodPhoto) {
		this.foodPhoto = foodPhoto;
	}
	
	public void setValid(boolean res) {
		this.valid = res ? 1 : 0;
	}
	
	public boolean isValid() {
		return this.valid == 1 ? true : false;
	}
}
